# 导入WSGI包
# 包地址 C:\Users\qiao\AppData\Local\Programs\Python\Python36\lib\wsgiref
from wsgiref.simple_server import make_server
from application import application


# 创建一个服务器，IP地址为空，端口是8000，处理函数是application:
httpd = make_server('', 8000, application)
print("Serving HTTP on port 8000...")
# 开始监听HTTP请求:
httpd.serve_forever()

